Skip to content

Code review sweep (run 25260462600)#18518

Merged
trask merged 12 commits into
mainfrom
otelbot/code-review-sweep-25260462600
May 2, 2026
Merged

Code review sweep (run 25260462600)#18518
trask merged 12 commits into
mainfrom
otelbot/code-review-sweep-25260462600

Conversation

@otelbot

@otelbot otelbot Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:

  • clickhouse-client-common-0.5:javaagent
  • play-ws-common-1.0:javaagent
  • play-ws-common-1.0:testing
  • vertx-web-3.0:testing
  • vibur-dbcp-11.0:javaagent
  • vibur-dbcp-11.0:library
  • vibur-dbcp-11.0:testing
  • wicket-8.0:common-testing
  • wicket-8.0:javaagent
  • wicket-8.0:wicket10-testing
  • wicket-8.0:wicket8-testing
  • xxl-job-1.9.2:javaagent
  • xxl-job-2.1.2:javaagent
  • xxl-job-2.3.0:javaagent
  • xxl-job-common:javaagent
  • xxl-job-common:testing
  • zio-2.0:javaagent

Module: clickhouse-client-common-0.5:javaagent

Module path: instrumentation/clickhouse/clickhouse-client-common-0.5/javaagent

Summary

Applied one safe repository-guideline fix under instrumentation/clickhouse/clickhouse-client-common-0.5/javaagent and committed it.

Applied Changes

Style

File: ClickHouseAttributesGetter.java:18
Change: Removed the `final` modifier from `ClickHouseAttributesGetter`.
Reason: The style guide says classes under `javaagent/src/main` are not public API and should not be declared `final`.

Module: play-ws-common-1.0:javaagent

Module path: instrumentation/play/play-ws/play-ws-common-1.0/javaagent

Summary

No safe repository-guideline fixes were applied under instrumentation/play/play-ws/play-ws-common-1.0/javaagent; the reviewed files already conform to the applicable style, javaagent advice/module, singleton, Gradle, and metadata rules in scope.

Applied Changes

No safe automated changes were applied.

Module: play-ws-common-1.0:testing

Module path: instrumentation/play/play-ws/play-ws-common-1.0/testing

Summary

Applied one safe repository-guideline fix and committed it in f5da0005 (Review fixes for play-ws-common-1.0 testing).

Applied Changes

Style

File: PlayWsClientBaseTest.java:47
Change: Changed `asyncHttpClient`, `asyncHttpClientWithReadTimeout`, and `materializer` from `protected static` to package-private `static`.
Reason: The style guide requires minimal necessary visibility; these shared test-helper fields are only used by classes in the same package.

Module: vertx-web-3.0:testing

Module path: instrumentation/vertx/vertx-web-3.0/testing

Summary

No safe repository-guideline fixes were found in instrumentation/vertx/vertx-web-3.0/testing; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: vibur-dbcp-11.0:javaagent

Module path: instrumentation/vibur-dbcp-11.0/javaagent

Summary

Applied one safe javaagent style fix and committed it in 7fb85139.

Applied Changes

Javaagent

File: ViburDbcpInstrumentationModule.java:27
Change: Moved the single-class `hasClassesNamed("org.vibur.dbcp.ViburConfig")` landmark into the compact `classLoaderMatcher()` form.
Reason: `javaagent-module-patterns.md` requires compact formatting for a single-class `classLoaderMatcher()` landmark with the version comment above the return expression.

Module: vibur-dbcp-11.0:library

Module path: instrumentation/vibur-dbcp-11.0/library

Summary

No safe repository-guideline fixes were applied under instrumentation/vibur-dbcp-11.0/library; reviewable source, test, Gradle, and required metadata.yaml checks did not reveal deterministic issues.

Applied Changes

No safe automated changes were applied.

Module: vibur-dbcp-11.0:testing

Module path: instrumentation/vibur-dbcp-11.0/testing

Summary

Applied one safe repository-guideline fix in instrumentation/vibur-dbcp-11.0/testing and committed it.

Applied Changes

Testing

File: AbstractViburInstrumentationTest.java:38
Change: Replaced checked `Thread.sleep`/`MILLISECONDS.sleep` calls with `await().pollDelay(EXPORTER_INTERVAL).until(() -> true)` and narrowed `shouldReportMetrics()` to `throws SQLException`.
Reason: The testing review guideline requires `@Test` methods to use a single checked exception type as specifically as possible; using `Duration`-based Awaitility delays removes the `InterruptedException` source while satisfying Error Prone’s `InterruptedExceptionSwallowed` and `PreferJavaTimeOverload` rules.

Module: wicket-8.0:common-testing

Module path: instrumentation/wicket-8.0/common-testing

Summary

No safe repository-guideline fixes were found under instrumentation/wicket-8.0/common-testing; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: wicket-8.0:javaagent

Module path: instrumentation/wicket-8.0/javaagent

Summary

Applied safe javaagent naming fixes for the Wicket 8.0 module and committed them in aa3e7e75.

Applied Changes

Naming

File: RequestHandlerExecutorInstrumentation.java:45
Change: Updated the route getter call from `WicketServerSpanNaming.getServerSpanName()` to `WicketServerSpanNaming.serverSpanName()`.
Reason: Javaagent singleton-style accessors should use lower-camel names matching the backing collaborator rather than JavaBean `get*` prefixes.

File: WicketServerSpanNaming.java:25
Change: Renamed `getServerSpanName()` to `serverSpanName()`.
Reason: Repository javaagent singleton accessor guidance requires zero-argument collaborator accessors to use the same lower-camel name as the backing field.

Module: wicket-8.0:wicket10-testing

Module path: instrumentation/wicket-8.0/wicket10-testing

Summary

Applied one safe repository-guideline fix in wicket10-testing and committed it.

Applied Changes

Build

File: build.gradle.kts:8
Change: Removed the duplicate `testImplementation("org.jsoup:jsoup:1.13.1")` dependency.
Reason: Repository Gradle conventions flag unused or redundant `testImplementation` dependencies; `Jsoup` is used and declared by `:instrumentation:wicket-8.0:common-testing`, while `wicket10-testing` does not reference it directly.

Module: wicket-8.0:wicket8-testing

Module path: instrumentation/wicket-8.0/wicket8-testing

Summary

No safe repository-guideline fixes were applied under instrumentation/wicket-8.0/wicket8-testing; reviewed build.gradle.kts, WicketTest.java, and the parent metadata.yaml config surface with no in-scope violations found.

Applied Changes

No safe automated changes were applied.

Module: xxl-job-1.9.2:javaagent

Module path: instrumentation/xxl-job/xxl-job-1.9.2/javaagent

Summary

Applied one safe repository-guideline fix in xxl-job-1.9.2 javaagent and committed it as a3c03142.

Applied Changes

Style

File: XxlJobSingletons.java:34
Change: Normalized `@SuppressWarnings({"Unused", "ReturnValueIgnored"})` to use the standard lowercase `"unused"` suppression name.
Reason: Repository review guidance allows deterministic `@SuppressWarnings` normalization, and the javaagent advice/style guidance consistently uses `@SuppressWarnings("unused")` for unused ByteBuddy/muzzle-only members.

Module: xxl-job-2.1.2:javaagent

Module path: instrumentation/xxl-job/xxl-job-2.1.2/javaagent

Summary

No safe repository-guideline fixes were found under instrumentation/xxl-job/xxl-job-2.1.2/javaagent; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: xxl-job-2.3.0:javaagent

Module path: instrumentation/xxl-job/xxl-job-2.3.0/javaagent

Summary

No safe repository-guideline fixes were applied under instrumentation/xxl-job/xxl-job-2.3.0/javaagent; reviewed source, tests, Gradle wiring, sibling testInstrumentation references, and required metadata.yaml config coverage.

Applied Changes

No safe automated changes were applied.

Module: xxl-job-common:javaagent

Module path: instrumentation/xxl-job/xxl-job-common/javaagent

Summary

No safe repository-guideline fixes were applied; scoped xxl-job-common/javaagent files and related xxl-job metadata.yaml entries already matched the loaded review rules.

Applied Changes

No safe automated changes were applied.

Module: xxl-job-common:testing

Module path: instrumentation/xxl-job/xxl-job-common/testing

Summary

Applied one safe repository-guideline fix in xxl-job-common/testing.

Applied Changes

Style

File: ReflectiveMethodsFactory.java:24
Change: Renamed unused `catch (Throwable t)` parameters to `catch (Throwable ignored)` in reflective helper methods.
Reason: `knowledge/general-rules.md` catch-variable naming guidance prefers `ignored` for intentionally unused catch parameters.

Module: zio-2.0:javaagent

Module path: instrumentation/zio/zio-2.0/javaagent

Summary

Applied one safe repository-guideline fix in zio-2.0 javaagent and committed it as 5b7dcfac.

Applied Changes

Style

File: TracingSupervisor.java:18
Change: Replaced non-explanatory `@SuppressWarnings` comments (`// fine`) with factual explanations for the unchecked Scala `Supervisor` generics and raw upstream `ZIO` return type.
Reason: Repository `@SuppressWarnings` guidance says explanatory suppression comments should be accurate and preserved; `// fine` did not explain why the suppressions are required.


Download code review diagnostics

otelbot Bot added 9 commits May 2, 2026 20:05
Automated code review of instrumentation/clickhouse/clickhouse-client-common-0.5/javaagent.
Automated code review of instrumentation/play/play-ws/play-ws-common-1.0/testing.
Automated code review of instrumentation/vibur-dbcp-11.0/javaagent.
Automated code review of instrumentation/vibur-dbcp-11.0/testing.
Automated code review of instrumentation/wicket-8.0/javaagent.
Automated code review of instrumentation/wicket-8.0/wicket10-testing.
Automated code review of instrumentation/xxl-job/xxl-job-1.9.2/javaagent.
Automated code review of instrumentation/xxl-job/xxl-job-common/testing.
Automated code review of instrumentation/zio/zio-2.0/javaagent.
@otelbot otelbot Bot requested a review from a team as a code owner May 2, 2026 20:47
@trask trask force-pushed the otelbot/code-review-sweep-25260462600 branch from ef0b8b1 to 988ce88 Compare May 2, 2026 21:26
…-sweep-25260462600

# Conflicts:
#	instrumentation/wicket-8.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/wicket/v8_0/WicketServerSpanNaming.java
@trask trask enabled auto-merge (squash) May 2, 2026 22:05
@trask trask merged commit e64d78a into main May 2, 2026
93 checks passed
@trask trask deleted the otelbot/code-review-sweep-25260462600 branch May 2, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant